import Layout from '@/layout/index.vue'

const UserCenterRouter = {
  path: '/userCenter',
  name: 'UserCenter',
  component: Layout,
  redirect: 'noRedirect',
  meta: {
    title: '用户中心',
    icon: 'user',
    alwaysShow: true
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/user_center/user.vue'),
      name: 'User',
      meta: { title: '个人主页', noCache: true }
    },
    {
      path: 'permission',
      component: () => import('@/views/user_center/permission.vue'),
      name: 'PermissionManage',
      meta: { title: '用户权限', noCache: true, permission: 'AAR' }
    }
  ]
}

export default UserCenterRouter
